/*
 * RoleMapper.java
 *
 * Copyright 2012 the original author or authors(ninglong).
 *
 * Licensed under the web-geek, Version 1.0 (the "License");
 *
 */
package org.geek.role.mapper;

import java.util.List;

import org.geek.common.entity.Criteria;
import org.geek.common.util.MyBatisUtil;
import org.geek.domain.Role;

/**
 * <p></p>
 * @author ninglong bhd2973@qq.com
 * @version V1.0
 */
@MyBatisUtil
public interface RoleMapper {
	
	int countRoleByCriteria(Criteria criteria);
	
	List<Role> getRoleByCriteria(Criteria criteria);
	
	int addRole(Role role);
	
	int modRole(Role role);
	
	int delRoleByRoleId(int roleId);
	
	int delRoleAndUserByRoleId(int roleId);
	
	int delRoleAndModuleByRoleId(int roleId);
}
